<?php
class SiteSelfController extends SiteController {
	public function index1(){
	//如果有扉页，则直接进入扉页
		if(REDIRECT_URL=='' || REDIRECT_URL == '/'){
			$index_file = ROOT_PATH . '/sites/main/' . MAIN_DOMAIN . '/templates/default.htm';
			if(is_file($index_file)){
				$this->display('default');
				return;
			}
		}
//		Session::set('name', 'ycoe');
		
//		echo Session::get('name') . '<br>';
		echo '这是私有APP应用<br>';
		$this->assign('site', $this->site_info);
		if(isset($_REQUEST['tpl'])){
			$this->display(trim($_REQUEST['tpl']));
		}else{
			$this->display();
		}
	}
}

?>